﻿using System.ComponentModel.DataAnnotations;

namespace Yyyg.WebUI.Models
{
    public class AddrVM
    {
        public int Id { get; set; } = -1;

        [Required]
        public string ProvinceCode { get; set; } = "";

        [Required]
        public string CityCode { get; set; } = "";

        [Required]
        public string CountyCode { get; set; } = "";

        [Required]
        public string Detarea { get; set; }

        [Required]
        public string ConsigneeName { get; set; }

        [DataType(DataType.PhoneNumber, ErrorMessage = "号码格式不正确")]
        [Required]
        public string ConsigneeMobel { get; set; }

        [Required]
        public string SetDef { get; set; }
    }
}